package com.webull.information.center.boot;

import java.io.IOException;
import java.util.Properties;

import org.springframework.core.io.ClassPathResource;
import org.springframework.core.io.Resource;
import org.springframework.core.io.support.EncodedResource;
import org.springframework.core.io.support.PropertiesLoaderUtils;

public class EnvProp {

	public static Properties getEnvProp() throws IOException {
		Resource resource = new ClassPathResource("app.properties");
		EncodedResource encRes = new EncodedResource(resource, "UTF-8");
		Properties appProperties = PropertiesLoaderUtils.loadProperties(encRes);
		return appProperties;
	}


}
